ActionController::Routing::Routes.draw do |map|
  # The priority is based upon order of creation: first created -> highest priority.
  
  # Sample of regular route:
  # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  # This route can be invoked with purchase_url(:id => product.id)

  # You can have the root of your site routed by hooking up '' 
  # -- just remember to delete public/index.html.
  # map.connect '', :controller => "welcome"

  # Allow downloading Web Service WSDL as a file with an extension
  # instead of a file named 'wsdl'
  map.connect ':controller/service.wsdl', :action => 'wsdl'
  
  map.connect 'project/:project/show/', :controller => 'project', :action => 'show', :list_type =>'',  :project =>''
  map.connect 'project/:project/show/:list_type', :controller => 'project', :action => 'show', :list_type =>'',  :project =>''
  map.connect 'project/:project/print/', :controller => 'project', :action => 'print',  :project =>''
  
  map.connect 'project/:project/edit/', :controller => 'project', :action => 'edit', :project =>''
  map.connect 'project/:project_id/update/', :controller => 'project', :action => 'update', :project_id =>''
  
  map.connect 'project/:project/userlist/', :controller => 'project', :action => 'userlist', :project =>''
  map.connect 'project/:project/edit_userlist/', :controller => 'project', :action => 'edit_userlist', :project =>''
  map.connect 'project/:project/delete_member/', :controller => 'project', :action => 'delete_member', :project =>''
  map.connect 'project/:project/tag_list_big/', :controller => 'project', :action => 'tag_list_big', :project =>''
  map.connect 'project/:project/tag_list_small/', :controller => 'project', :action => 'tag_list_small', :project =>''
  map.connect 'project/:project/tags/', :controller => 'project', :action => 'tag_list', :project =>''
  map.connect 'project/:project/tags/:tag', :controller => 'project', :action => 'tag', :project =>'', :tag => ''
  
  map.connect 'ticket/new/:project', :controller => 'ticket', :action => 'new', :project => 0

  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id.:format'
  map.connect ':controller/:action/:id'
  
  map.connect '', :controller => 'project', :action => 'list'
end
